home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / loa_and_the_island.swf / scripts / frame_212 / PlaceObject2_883_1436 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-03-17  |  820b  |  37 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused == false and (_global.location == 4 or _global.location == 6))
  3.    {
  4.       _visible = true;
  5.       _alpha = (100 + _alpha) / 2;
  6.       _Y = _Y - _yscale / 5;
  7.       _X = _X + xmove;
  8.       xmove += (random(11) - 5) * _xscale / 100;
  9.       if(_X < -20)
  10.       {
  11.          _X = 560;
  12.       }
  13.       if(_X > 570)
  14.       {
  15.          _X = -10;
  16.       }
  17.       if(_Y < -20)
  18.       {
  19.          _Y = 420;
  20.          _xscale = random(141) + 10;
  21.          _yscale = _xscale;
  22.          xmove = 0;
  23.       }
  24.    }
  25.    if(_root.paused == true and (_global.location == 4 or _global.location == 6) and _root.conversation == false)
  26.    {
  27.       if(key.isDown(40))
  28.       {
  29.          _alpha = _alpha / 2;
  30.       }
  31.       else
  32.       {
  33.          _alpha = (100 + _alpha) / 2;
  34.       }
  35.    }
  36. }
  37.